package com.sqx.modules.reward.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author www.javacoder.top
 * @since 2023-01-16
 */
@Data
public class Reward implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 奖励制度id
     */
    @TableId(value = "reward_id", type = IdType.AUTO)
    private Long rewardId;

    /**
     * 单数
     */
    private Integer num;

     /**
     * 排序
     */
    private Integer sort;

    /**
     * 是否启用 0否 1是
     */
    private Integer isEnable;

    /**
     * 分成比例
     */
    private BigDecimal rewardProp;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
